<template>
    <el-tabs v-model="activeName" style="margin: 30px;">
    <el-tab-pane label="计薪设置" name="first">
      <el-form>
        <el-form-item label="对应社保自然月">
          <el-select v-model="value" placeholder="请选择" style="width: 300px;">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="社保数据来源" >
          <el-input
            placeholder="社保模块"
            style="width: 300px;"
            :disabled="true">
          </el-input>
        </el-form-item>
        <el-form-item label="考勤数据来源">
          <el-input
            placeholder="考勤模块"
            style="width: 300px;"
            :disabled="true">
          </el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary">提交</el-button>
          <el-button>重置</el-button>
        </el-form-item>
      </el-form>
    </el-tab-pane>
    <el-tab-pane label="津贴设置" name="second">

    </el-tab-pane>
  </el-tabs>
</template>


<script>
import {getSalarySetting} from '@/api/salary'
export default {
  data() {
      return {
        activeName: 'first',
        options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {
          value: '选项5',
          label: '北京烤鸭'
        }],
        value: ''
      }
    },
    async created() {
      const data=await getSalarySetting()
      console.log(data);
    }
}
</script>


<style>
</style>